<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/tld/authority.tld" prefix="authority" %>
<%@ taglib uri="/tld/token.tld" prefix="token" %>

<div class="pop-background">
    <div class="col-md-5">
        <div class="popup popup5 popup-small x-4-move">
            <div class="panel-heading">
                <div class="panel-btns">
                    <a class="panel-close btn-4-hide">×</a>
                </div>
                <h3 class="panel-title">${empty role.id ? '新增角色' : '修改角色信息'}</h3>
            </div>
            <div class="panel-add-to">
                <form>
                    <token:token/>
                    <input type="hidden" name="id" value="${role.id}">

                    <div class="row">
                        <div class="panel-body panel-body-ws">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label"><em
                                            class="color-red btian">*</em>角色名称：</label>

                                    <div class="col-sm-6">
                                        <input type="text" class="form-control" name="name" value="${role.name}">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">备注：</label>

                                    <div class="col-sm-6">
                                        <textarea class="form-control textarea" name="remark">${role.remark}</textarea>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">排序：</label>

                                    <div class="col-sm-6">
                                        <input type="text" class="form-control" name="seq"
                                               value="${role.seq}">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>

                <div class="btn-group2-s">
                    <div class="panel-body panel-body2">
                        <div class="btn-group2 left">
                            <%--<authority:authority url="/role/add,/role/modify">--%>
                                <button class="btn btn-primary btn-4-save">保存</button>
                            <%--</authority:authority>--%>
                            <button class="btn btn-default btn-4-hide">取消</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="js/system/role-edit.js"></script>
</div>
